import numpy as np

### 二、ndarray的属性
n = np.random.randint(0, 10, size=(3, 4, 5))
print(n)
print(n.ndim)  # 3
print(n.shape)  # (3, 4, 5)
print(n.size)  # 60
print(n.dtype)  # int32
